//
//  YAYIDropMenuView.h
//  yayi-医生版
//
//  Created by Veer on 16/4/26.
//  Copyright © 2016年 Veer. All rights reserved.
//

#import <UIKit/UIKit.h>

//定义数据模型
@interface YAYIModel : NSObject

@property (nonatomic,copy) NSString *id;
@property (nonatomic,copy) NSString *name;
@property BOOL isSub;
@property BOOL isSelect;
@end


//自定义下拉cell
@interface YAYIMenuCell : UITableViewCell

@property (nonatomic,retain) UIView *bgView;
@property (nonatomic,retain) UIView *point;
@property (nonatomic,retain) UILabel *textL;

@property (nonatomic,strong)UIImageView *selectedIcon;

@property (nonatomic, assign) BOOL setSelected;

@end


@protocol YAYIDropMenuViewDelegate <NSObject>

- (void)selectColum:(NSInteger)colum Row:(NSInteger)row Model:(YAYIModel *)model;
- (void)selectColum:(NSInteger)colum;


@end

@interface YAYIDropMenuView : UIView <UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, retain) NSMutableArray *AllDataArr;
@property (nonatomic, retain) NSMutableArray *showArr;
@property (nonatomic, weak) id<YAYIDropMenuViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame showOnView:(UIView*)view AllDataArr:(NSMutableArray*)arr showArr:(NSMutableArray *)showArr;
//使某列某行被选中,默认均选中第0行。 可调用此方法更改默认。
- (void)selectClum:(NSInteger)colum Row:(NSInteger)row;

- (void)refreshData:(NSMutableArray *)allDataArray;


@end



